<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>AiKIKI - Welcome!</title><meta name="author" content="樵子"><meta name="copyright" content="樵子"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="referrer" content="no-referrer"><meta name="description" content="Always CREATIVE.">
<meta property="og:type" content="website">
<meta property="og:title" content="AiKIKI">
<meta property="og:url" content="https://www.aikiki.top/page/2/index.html">
<meta property="og:site_name" content="AiKIKI">
<meta property="og:description" content="Always CREATIVE.">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/avatar.png">
<meta property="article:author" content="樵子">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/avatar.png"><link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/favicon.ico"><link rel="canonical" href="https://www.aikiki.top/page/2/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid/dist/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'AiKIKI',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2023-12-28 09:46:04'
}</script><script>(win=>{
      win.saveToLocal = {
        set: (key, value, ttl) => {
          if (ttl === 0) return
          const now = Date.now()
          const expiry = now + ttl * 86400000
          const item = {
            value,
            expiry
          }
          localStorage.setItem(key, JSON.stringify(item))
        },
      
        get: key => {
          const itemStr = localStorage.getItem(key)
      
          if (!itemStr) {
            return undefined
          }
          const item = JSON.parse(itemStr)
          const now = Date.now()
      
          if (now > item.expiry) {
            localStorage.removeItem(key)
            return undefined
          }
          return item.value
        }
      }
    
      win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        script.onerror = reject
        script.onload = script.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          script.onload = script.onreadystatechange = null
          resolve()
        }

        Object.keys(attr).forEach(key => {
          script.setAttribute(key, attr[key])
        })

        document.head.appendChild(script)
      })
    
      win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onerror = reject
        link.onload = link.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          link.onload = link.onreadystatechange = null
          resolve()
        }
        document.head.appendChild(link)
      })
    
      win.activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
        if (t === 'dark') activateDarkMode()
        else if (t === 'light') activateLightMode()
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
      const detectApple = () => {
        if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
          document.documentElement.classList.add('apple')
        }
      }
      detectApple()
    })(window)</script><meta name="generator" content="Hexo 7.0.0"><link rel="alternate" href="/atom.xml" title="AiKIKI" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/avatar.png" onerror="onerror=null;src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">28</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">21</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">1</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('https://open.saintic.com/api/bingPic/')"><nav id="nav"><span id="blog-info"><a href="/" title="AiKIKI"><span class="site-name">AiKIKI</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">AiKIKI</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://github.com/acmeist" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:huweighost@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a><a class="social-icon" href="/atom.xml" target="_blank" title="Rss"><i class="fas fa-rss"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left"><a href="/post/ea01/" title="CentOS 8 安装 Docker-CE"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/centos-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="CentOS 8 安装 Docker-CE"></a></div><div class="recent-post-info"><a class="article-title" href="/post/ea01/" title="CentOS 8 安装 Docker-CE">CentOS 8 安装 Docker-CE</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-03-22T18:24:00.000Z" title="发表于 2021-03-23 02:24:00">2021-03-23</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">CentOS 8 官方源 containerd.io 版本太低无法安装最新版 Docker-CE。
一、CentOS 8 更换源为阿里云安装 wget 和 curl 组件：
12yum install wget -yyum install curl -y

1、备份原文件12345mv /etc/yum.repos.d/CentOS-Linux-BaseOS.repo /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.backupmv /etc/yum.repos.d/CentOS-Linux-PowerTools.repo /etc/yum.repos.d/CentOS-Linux-PowerTools.repo.backupmv /etc/yum.repos.d/CentOS-Linux-Extras.repo /etc/yum.repos.d/CentOS-Linux-Extras.repo.backupmv /etc/yum.repos.d/CentOS-Linux-Plus.repo /etc/yum.repos.d/CentOS-Linux ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/862b/" title="Proxmox VE 6.2 国内源设置"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/proxmox-logo.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="Proxmox VE 6.2 国内源设置"></a></div><div class="recent-post-info"><a class="article-title" href="/post/862b/" title="Proxmox VE 6.2 国内源设置">Proxmox VE 6.2 国内源设置</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-06-01T08:18:00.000Z" title="发表于 2020-06-01 16:18:00">2020-06-01</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">更换 PVE 社区源删除企业源1rm -rf /etc/apt/sources.list.d/pve-enterprise.list

下载秘钥1wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg

添加社区源1echo &quot;deb http://download.proxmox.wiki/debian/pve stretch pve-no-subscription&quot; &gt;/etc/apt/sources.list.d/pve-install-repo.list

更换 Debian 国内源备份原文件备份原文件： /etc/apt/sources.list
1cp /etc/apt/sources.list /etc/apt/sources.list.bak

编辑源信息1nano /etc/apt/sources.list

在原文件增加下面的内容
12345678deb ht ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/def6/" title="使用 Windows 自带的远程桌面 mstsc 连接 CentOS 8"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/centos-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="使用 Windows 自带的远程桌面 mstsc 连接 CentOS 8"></a></div><div class="recent-post-info"><a class="article-title" href="/post/def6/" title="使用 Windows 自带的远程桌面 mstsc 连接 CentOS 8">使用 Windows 自带的远程桌面 mstsc 连接 CentOS 8</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-09T01:43:00.000Z" title="发表于 2020-05-09 09:43:00">2020-05-09</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">CentOS 8 和 CentOS 7 有些差别。主要是：

不要安装 vnc-server

安装 XRDP切换为 root 用户：1sudo su - root

安装 epel 库查询是否已经安装 epel 库:
1rpm -qa|grep epel

如果 epel 库没有安装，则安装它：
1yum install epel-release

安装 XRDP安装 xrdp 服务：
1yum install xrdp

设置 XRDP配置 XRDP修改 xrdp 最大连接数（使用默认值，不修改也是可以的） ：
1vim /etc/xrdp/xrdp.ini

12//默认是32：max_bpp=32

启动 XRDP12345//启动 xrdp 服务：systemctl start xrdp//设置 xrdp 服务开机自启动：systemctl enable xrdp

设置防火墙开放端口 338912345//开启 3389 端口firewall-cmd --zone=public --add-port=3389 /tcp --permanent//重启防火墙firewall- ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/f10f/" title="给 Docker 中的 PHP 安装 GD 扩展"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/docker-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="给 Docker 中的 PHP 安装 GD 扩展"></a></div><div class="recent-post-info"><a class="article-title" href="/post/f10f/" title="给 Docker 中的 PHP 安装 GD 扩展">给 Docker 中的 PHP 安装 GD 扩展</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-03-25T05:28:00.000Z" title="发表于 2020-03-25 13:28:00">2020-03-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">安装 php:5.6.40-fpm 发现没有 GD 库。
直接通过 docker-php-ext-install gd 安装。执行安装后查询结果居然是没有安装，看来的自己编译。
进入 php 容器1$ docker exec -it &lt;CONTAINER-ID or CONTAINER-NAME&gt; /bin/bash

修改 Debian 软件源镜像站123456789101112# 进入软件源目录cd /etc/apt# 备份源文件cp sources.list sources.list.backup# 替换源地址为 aliyunsed -i &#x27;s/deb.debian.org/mirrors.aliyun.com/g&#x27; sources.listsed -i &#x27;s/security.debian.org/mirrors.aliyun.com/g&#x27; sources.list# 更新软件源apt update

安装 GD 库1234567891011121314151617# 安装需要的库文件apt install -y libweb ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/6f9d/" title="Docker 搭建 DNMP 环境"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/docker-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="Docker 搭建 DNMP 环境"></a></div><div class="recent-post-info"><a class="article-title" href="/post/6f9d/" title="Docker 搭建 DNMP 环境">Docker 搭建 DNMP 环境</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-03-22T08:13:00.000Z" title="发表于 2020-03-22 16:13:00">2020-03-22</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">Linxu 下搭建 Nginx、PHP 和 MariaDB 称之为 LNMP，那么我们在 Docker 下搭建就叫 DNMP 吧（虽然我不知道这样叫是否正确）。
配置单机网桥由于这几个镜像相互之间需要通信，最好的解决方案是创建一个容器网络。因此我们首先需要创建 Docker 网络 localnet，用于 docker 之间的通信。
12345# Linux$ docker network create -d bridge localnet# Windows&gt; docker network create -d nat localnet

查看创建好的网络。
12345678$ docker network listNETWORK ID          NAME                DRIVER              SCOPEb7228b827811        bridge              bridge              localaf39f057ff30        host                host              ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/fed3/" title="Debian 10 安装 Docker-CE"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/debian-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="Debian 10 安装 Docker-CE"></a></div><div class="recent-post-info"><a class="article-title" href="/post/fed3/" title="Debian 10 安装 Docker-CE">Debian 10 安装 Docker-CE</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-03-22T06:13:00.000Z" title="发表于 2020-03-22 14:13:00">2020-03-22</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">安装 docker
这里使用阿里云的源进行安装。

安装任何组件前的好习惯更新1apt-get update

安装必要的系统工具1apt-get -y install apt-transport-https ca-certificates curl software-properties-common

安装 GPG 证书1curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/debian/gpg | sudo apt-key add -

写入软件源1add-apt-repository &quot;deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/debian $(lsb_release -cs) stable&quot;

更新并安装 docker-ce12apt-get -y updateapt-get -y install docker-ce

正常配置好 docker 之后，每次运行 docker 命令需要在前面加：sudo，如：sudo docker  ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/1554/" title="使用 Windows 自带的远程桌面 mstsc 连接 Debian 10"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/debian-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="使用 Windows 自带的远程桌面 mstsc 连接 Debian 10"></a></div><div class="recent-post-info"><a class="article-title" href="/post/1554/" title="使用 Windows 自带的远程桌面 mstsc 连接 Debian 10">使用 Windows 自带的远程桌面 mstsc 连接 Debian 10</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-03-19T18:01:52.000Z" title="发表于 2020-03-20 02:01:52">2020-03-20</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">方法一安装远程桌面服务1apt-get install tigervnc-standalone-server

新建配置文件新建配置文件，使的远程登录时默认使用 xfce4 作为登录界面。
1echo xfce4-session&gt;/home/username/.xsession

如果安装了其他桌面环境，可以更换 xfce4-session 为:
1234567&quot;startkde&quot;  #使用KDE&quot;cinnamon-session&quot;  #使用cinnamon&quot;mate-session&quot;  #使用mate&quot;gnome-session&quot;  #gnome

安装 xrdp1apt-get install xrdp

重启服务端后登陆
一定要重启服务端，否则登录进去是一个空白桌面。

使用普通用户登录成功后，系统会提示输入两次 root 密码。
关于卸载 xserver-xorg-legacy（非必要）
此步非必要，如果登录后是一个空白桌面可以尝试该方法。参考

1apt-get purge xserver- ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/7ae0/" title="Debian 10 解决 /etc/rc.local 开机启动问题"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/debian-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="Debian 10 解决 /etc/rc.local 开机启动问题"></a></div><div class="recent-post-info"><a class="article-title" href="/post/7ae0/" title="Debian 10 解决 /etc/rc.local 开机启动问题">Debian 10 解决 /etc/rc.local 开机启动问题</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-03-16T18:07:00.000Z" title="发表于 2020-03-17 02:07:00">2020-03-17</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">由于某些软件没有开机自动启动的服务，很多时候需要手工添加，一般我们都是推荐添加命令到 /etc/rc.local 文件，但是 Debian 10 默认不带 /etc/rc.local 文件，而 rc.local 服务却还是自带的.
查看服务配置文件12345678910111213141516171819202122232425[root@debian /root]#  cat /lib/systemd/system/rc.local.service#   SPDX-License-Identifier: LGPL-2.1+##   This file is part of systemd.##   systemd is free software; you can redistribute it and/or modify it#   under the terms of the GNU Lesser General Public License as published by#   the Free Software Foundation; either version 2.1 o ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/9480/" title="Debian 10 搭建 nfs 服务器"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/debian-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="Debian 10 搭建 nfs 服务器"></a></div><div class="recent-post-info"><a class="article-title" href="/post/9480/" title="Debian 10 搭建 nfs 服务器">Debian 10 搭建 nfs 服务器</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-03-16T18:06:53.000Z" title="发表于 2020-03-17 02:06:53">2020-03-17</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">安装 nfs 服务器1[root@debian /root]#  apt-get install nfs-kernel-server

修改服务端配置文件
如果只使用客户端功能，可忽略此步操作。

1234567891011121314[root@debian /root]#  nano /etc/exports#  /etc/exports: the access control list for filesystems which may be exported# 		to NFS clients.  See exports(5).##  Example for NFSv2 and NFSv3:#  /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)##  Example for NFSv4:#  /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)#  /srv/nfs4/ ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/c6aa/" title="Proxmox VE 安装群晖 6.2"><img class="post-bg" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/proxmox-logo.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="Proxmox VE 安装群晖 6.2"></a></div><div class="recent-post-info"><a class="article-title" href="/post/c6aa/" title="Proxmox VE 安装群晖 6.2">Proxmox VE 安装群晖 6.2</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-03-14T22:01:00.000Z" title="发表于 2020-03-15 06:01:00">2020-03-15</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Archives/">Archives</a></span></div><div class="content">新建 PVE 虚拟机，修改网卡为 E1000e。群晖 6.2 以上版本，启动后找不到服务器。原因是群晖不识别 PVE 虚拟机的 E1000 网卡，将网卡修改为 E1000e 即可找到服务器进入安装程序。

新建虚拟机网卡必须选择 E1000。虚拟机不需要启动。

修改建好的虚拟机网卡步骤如下：
获取网卡配置参数101 为虚拟机 id，根据自己实际情况修改
1qm showcmd 101

记录输出值，只需要注意最后一个 -netdev 开始的字段。
输出值如下所示：
1/usr/bin/kvm -id 101 -name DS3617xs ...这里省略N个字符... -netdev &#x27;type=tap,id=net0,ifname=tap101i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown&#x27; -device &#x27;e1000,mac=00:11:32:33:44:55,netdev=net0,bus=pci.0,addr=0x12 ...</div></div></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/"><i class="fas fa-chevron-left fa-fw"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/#content-inner">3</a><a class="extend next" rel="next" href="/page/3/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/avatar.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">樵子</div><div class="author-info__description">Always CREATIVE.</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">28</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">21</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">1</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/acmeist"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/acmeist" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:huweighost@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a><a class="social-icon" href="/atom.xml" target="_blank" title="Rss"><i class="fas fa-rss"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">感謝訪問本站，若喜歡請收藏 ^_^</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/post/c3b4/" title="Docker 使用宿主机网段"><img src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/docker-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="Docker 使用宿主机网段"/></a><div class="content"><a class="title" href="/post/c3b4/" title="Docker 使用宿主机网段">Docker 使用宿主机网段</a><time datetime="2023-12-18T01:27:00.000Z" title="发表于 2023-12-18 09:27:00">2023-12-18</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/1e36/" title="ESXi 远程 SSH 终端登录显示器管理界面"><img src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/esxi-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="ESXi 远程 SSH 终端登录显示器管理界面"/></a><div class="content"><a class="title" href="/post/1e36/" title="ESXi 远程 SSH 终端登录显示器管理界面">ESXi 远程 SSH 终端登录显示器管理界面</a><time datetime="2023-11-29T01:45:00.000Z" title="发表于 2023-11-29 09:45:00">2023-11-29</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/9973/" title="ESXi 6.7 自动关机设置"><img src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/esxi-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="ESXi 6.7 自动关机设置"/></a><div class="content"><a class="title" href="/post/9973/" title="ESXi 6.7 自动关机设置">ESXi 6.7 自动关机设置</a><time datetime="2023-11-25T07:12:00.000Z" title="发表于 2023-11-25 15:12:00">2023-11-25</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/bf0c/" title="OpenWrt 安装自带 Tailscale 和 ZeroTier"><img src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/openwrt-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="OpenWrt 安装自带 Tailscale 和 ZeroTier"/></a><div class="content"><a class="title" href="/post/bf0c/" title="OpenWrt 安装自带 Tailscale 和 ZeroTier">OpenWrt 安装自带 Tailscale 和 ZeroTier</a><time datetime="2023-11-21T01:19:00.000Z" title="发表于 2023-11-21 09:19:00">2023-11-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/53a7/" title="OpenWrt 更新所有已安装软件包"><img src="https://cdn.jsdelivr.net/gh/acmeist/CDN/logos/openwrt-logo-horizontal.jfif" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/404.jpg'" alt="OpenWrt 更新所有已安装软件包"/></a><div class="content"><a class="title" href="/post/53a7/" title="OpenWrt 更新所有已安装软件包">OpenWrt 更新所有已安装软件包</a><time datetime="2023-11-15T01:38:00.000Z" title="发表于 2023-11-15 09:38:00">2023-11-15</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Archives/"><span class="card-category-list-name">Archives</span><span class="card-category-list-count">28</span></a></li>
            </ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/CentOS/" style="font-size: 1.5em; color: #99a9bf">CentOS</a> <a href="/tags/ZeroTier/" style="font-size: 1.1em; color: #999">ZeroTier</a> <a href="/tags/Docker/" style="font-size: 1.43em; color: #99a6b9">Docker</a> <a href="/tags/Apache/" style="font-size: 1.1em; color: #999">Apache</a> <a href="/tags/Tailscale/" style="font-size: 1.1em; color: #999">Tailscale</a> <a href="/tags/Compute-Engine/" style="font-size: 1.1em; color: #999">Compute Engine</a> <a href="/tags/Nginx/" style="font-size: 1.17em; color: #999c9f">Nginx</a> <a href="/tags/ESXi/" style="font-size: 1.17em; color: #999c9f">ESXi</a> <a href="/tags/IpVlan/" style="font-size: 1.1em; color: #999">IpVlan</a> <a href="/tags/WordPress/" style="font-size: 1.1em; color: #999">WordPress</a> <a href="/tags/PHP/" style="font-size: 1.3em; color: #99a1ac">PHP</a> <a href="/tags/MariaDB/" style="font-size: 1.23em; color: #999ea6">MariaDB</a> <a href="/tags/Rocky-Linux/" style="font-size: 1.1em; color: #999">Rocky Linux</a> <a href="/tags/OpenWrt/" style="font-size: 1.17em; color: #999c9f">OpenWrt</a> <a href="/tags/phpMyAdmin/" style="font-size: 1.23em; color: #999ea6">phpMyAdmin</a> <a href="/tags/Debian/" style="font-size: 1.37em; color: #99a4b2">Debian</a> <a href="/tags/Proxmox-VE/" style="font-size: 1.23em; color: #999ea6">Proxmox VE</a> <a href="/tags/Google-Cloud/" style="font-size: 1.1em; color: #999">Google Cloud</a> <a href="/tags/Synology/" style="font-size: 1.1em; color: #999">Synology</a> <a href="/tags/Linux/" style="font-size: 1.1em; color: #999">Linux</a> <a href="/tags/Cockpit/" style="font-size: 1.1em; color: #999">Cockpit</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span><a class="card-more-btn" href="/archives/" title="查看更多">
    <i class="fas fa-angle-right"></i></a></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/12/"><span class="card-archive-list-date">十二月 2023</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/11/"><span class="card-archive-list-date">十一月 2023</span><span class="card-archive-list-count">4</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/07/"><span class="card-archive-list-date">七月 2021</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/06/"><span class="card-archive-list-date">六月 2021</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/03/"><span class="card-archive-list-date">三月 2021</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2020/06/"><span class="card-archive-list-date">六月 2020</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2020/05/"><span class="card-archive-list-date">五月 2020</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2020/03/"><span class="card-archive-list-date">三月 2020</span><span class="card-archive-list-count">11</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">28</div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">18.9k</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2023-12-28T01:46:04.365Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By 樵子</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text"><a target="_blank" rel="noopener" href="https://beian.miit.gov.cn/"><img class="icp-icon" src="https://cdn.jsdelivr.net/gh/acmeist/CDN/www/img/icp.png"><span>渝ICP备19007019号</span></a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.min.js"></script><div class="js-pjax"><script>window.typedJSFn = {
  init: (str) => {
    window.typed = new Typed('#subtitle', Object.assign({
      strings: str,
      startDelay: 300,
      typeSpeed: 150,
      loop: true,
      backSpeed: 50,
    }, null))
  },
  run: (subtitleType) => {
    if (true) {
      if (typeof Typed === 'function') {
        subtitleType()
      } else {
        getScript('https://cdn.jsdelivr.net/npm/typed.js/dist/typed.umd.min.js').then(subtitleType)
      }
    } else {
      subtitleType()
    }
  }
}
</script><script>function subtitleType () {
  if (true) {
    typedJSFn.init(["今日事,今日畢","Never put off till tomorrow what you can do today"])
  } else {
    document.getElementById("subtitle").textContent = "今日事,今日畢"
  }
}
typedJSFn.run(subtitleType)</script></div><script defer="defer" id="fluttering_ribbon" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/canvas-fluttering-ribbon.min.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>